package top.fzqblog.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 抽离
 * @since 2017-09-02
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "user_id")
	private Integer userId;

	/**
	 * 
	 */
	private String userName;

	/**
	 * 
	 */
	private String tel;

	/**
	 * 
	 */
	private String password;

	/**
	 * 
	 */
	private Integer dayJoinCount;

	/**
	 * 
	 */
	private Integer credits;

	/**
	 * 
	 */
	private Integer totalJoinCount;

	/**
	 * 
	 */
	private Integer userType;

	/**
	 * 
	 */
	private Integer userStatus;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;



	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getDayJoinCount() {
		return dayJoinCount;
	}

	public void setDayJoinCount(Integer dayJoinCount) {
		this.dayJoinCount = dayJoinCount;
	}

	public Integer getCredits() {
		return credits;
	}

	public void setCredits(Integer credits) {
		this.credits = credits;
	}

	public Integer getTotalJoinCount() {
		return totalJoinCount;
	}

	public void setTotalJoinCount(Integer totalJoinCount) {
		this.totalJoinCount = totalJoinCount;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }
}
